<include file='Public/head' />
<include file='Public/header1' />
	<!--头部开始-->
		<div class="p_header">
		<div class="space3"></div>
			<div class="main">
				<div class="p_logo">
					<a href="#"><img src="__IMG__/13.png"/></a>
				</div>
				<div class="p_title"></div>
			<div class="form_div">
				<div class="space2"></div>
			<form action="">
					<span href="" class="dropdown_a">课程 <img src="__IMG__/32.png" alt="" />
						<div class="xiala">
							<a href="">数学</a>
							<a href="">语文</a>
							<a href="">地理</a>
							<a href=""></a>
						</div>
					</span>
					<input type="search" />
					<a href="" class="btn"></a>
				</form>
				</div>
				<div class="gouwuche">
					<a href="#">
					<p><img src="__IMG__/50.png" alt="" / class="che">我的购物车&nbsp; <span class="iconfont">&nbsp;&#xe601;</span></p>
					</a>
					<span class="shumu">22</span>
				</div>
			</div>
		</div>
		<!--头部结束-->
		<!--导航开始-->
<div class="navbar">
	<div class="main">
		<div class="space1"></div>
		<div class="nav">
			<ul>
				<li style="border-left: none;"><a href="">首页</a></li>
				<li><a href="">热卖书籍</a></li>
				<li><a href="">文化用品</a></li>
				<li><a href="">预售</a></li>
				<li style="border-right: none;"><a href="">优惠活动</a></li>
			</ul>
		</div>
	</div>
</div>
<!--导航结束-->

<div class="main">
	<div class="goods_title">
		<div class="space1"></div>
		<p>当前位置： <a href="/">123在线教育</a>> <a href="{:U('/Shop/')}">在线商城</a> > {$detail.goods_name}</p>
		<div class="space1"></div>
	</div>
	<div class="ding_goods">
		<div class="goods_photo">
			<img src="__IMG__/46.png" alt="" />
		</div>
		<div class="goods_click">
			<p class="goods_n">{$detail.goods_name}</p>
			<div class="space2"></div>
			<div class="goods_price">
				<div class="space2"></div>
				<div class="goods_price_in">
					<p>促&nbsp;&nbsp;销&nbsp;&nbsp;价:   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="span_money">&yen;</span> <span class="span_num">{$detail.shop_price}元</span></p>
					<p>原&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="span_yf">&yen;{$detail.market_price|default='0'}</span> </p>
					<p>发售状态:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="span_now"><eq name='detail.is_hot' value='1'>热销</eq><eq name='detail.is_new' value='1'>&nbsp;新品</eq><eq name='detailt.is_commanded' value='1'> 推荐</eq></span></p>
				</div>
			</div>
			<div class="space2"></div>
			<div class="space1"></div>
			<div class="goods_buy_num">
				<div class="buy_num_l">数量</div>
				<div class="buy_num_r">
					<input type="text"  id='num' name='num'  value="1"/>
					<div class="u_d">
						<a href="javascript:;" class="buy_up"><img src="__IMG__/49.png" alt="" /></a><a href="javascript:;" class="buy_down"><img src="__IMG__/48.png" alt="" /></a>
						<span>本</span>
					</div>
				</div>
			</div>
			<div class="space2"></div>
			<div class="a_buy_che">
				<a href="javascript:;"><img src="__IMG__/52.png" id="buy_now" alt="" /></a> 
				<a href="javascript:;"><img src="__IMG__/53.png" id="add_to_cart" alt="" /></a> 
			</div>
		</div>
		<div class="space5"></div>
		<div class="goods_photo_small">
			<img src="__IMG__/47.png" alt="" />
		</div>
	</div>
	<div class="space2"></div>
	<div class="space1"></div>
	<div class="goods_lbar">
		<div class="goods_lbar_t">
			<span>课程推荐</span>
		</div>

		<div class="lbar_content">
			<div class="space2"></div>
			<img src="__IMG__/54.png" alt="" />
			<div class="space1"></div>
			<p class="p1">税务师[零基础]超值特惠班</p>
			<div class="space1"></div>
			<p class="p2"><strong>￥380.0</strong> <small>￥380.0</small></p>
		</div>
		<div class="space2"></div>
		<div class="sbar"></div>
		<div class="lbar_content">
			<div class="space2"></div>
			<img src="__IMG__/54.png" alt="" />
			<div class="space1"></div>
			<p class="p1">税务师[零基础]超值特惠班</p>
			<div class="space1"></div>
			<p class="p2"><strong>￥380.0</strong> <small>￥380.0</small></p>
		</div>
		<div class="space2"></div>
		<div class="sbar"></div>
		<div class="lbar_content">
			<div class="space2"></div>
			<img src="__IMG__/54.png" alt="" />
			<div class="space1"></div>
			<p class="p1">税务师[零基础]超值特惠班</p>
			<div class="space1"></div>
			<p class="p2"><strong>￥380.0</strong> <small>￥380.0</small></p>
		</div>
		<div class="space2"></div>
		<div class="sbar"></div>
		<div class="lbar_content">
			<div class="space2"></div>
			<img src="__IMG__/54.png" alt="" />
			<div class="space1"></div>
			<p class="p1">税务师[零基础]超值特惠班</p>
			<div class="space1"></div>
			<p class="p2"><strong>￥380.0</strong> <small>￥380.0</small></p>
		</div>
		<div class="space2"></div>
	</div>

	<div class="goods_rbar">
		<div class="rbar_abt">
			<div class="space2"></div>
			<div class="rbar_abt_in">
				{$detail.goods_content}
			</div>
		</div>
	</div>
	<!--横幅开始-->
<!-- 	<div class="banner2">
		<img src="__IMG__/38.png" alt="" />
	</div> -->
		<!--横幅结束-->
	
	<!--指导链接开始-->
	<div class="about_link">
		<div class="buy_help">
			<h3>购书指南</h3>
			<div class="space2"></div>
			<p><a href="">轻松过关系列图书介绍</a></p>
			<p><a href="">注册流程</a></p>
			<p><a href="">在线购买图书流程</a></p>
			<p><a href="">赠品与附加服务</a></p>
		</div>
		<div class="pay_way">
			<h3>支付方式</h3>
			<div class="space2"></div>
			<p><a href="">随书赠卡支付方式</a></p>
			<p><a href="">现金抵用券支付方式</a></p>
			<p><a href="">现金帐户支付方式</a></p>
			<p><a href="">线上支付</a></p>
			<p><a href="">银行汇款支付方式</a></p>
			<p><a href="">邮局汇款支付方式</a></p>
		</div>
		<div class=" dispatching_way">
			<h3>配送方式</h3>
			<div class="space2"></div>
			<p><a href="">邮政特快专递 经济快递</a></p>
			<p><a href="">普通快递</a></p>
			<p><a href="">邮局挂号印刷品</a></p>
			<p><a href="">邮政特快专递(EMS）</a></p>
		</div>
		<div class="questions">
			<h3>常见问题</h3>
			<div class="space2"></div>
			<p><a href="">图书退换政策</a></p>
			<p><a href="">调换方式问题</a></p>
			<p><a href="">购书后如何查询订单？</a></p>
			<p><a href="">开具发票问题</a></p>
			<p><a href="">发现盗版书籍举报？</a></p>
			<p><a href="">辅导书勘误专区</a></p>
			<p><a href="">意见反馈</a></p>
		</div>
	</div>
	</div>
	<!--指导链接结束-->
	<include file='Public/commonfooter' />	
<script>
var goods_info = {
	'goods_id' : '{$detail.goods_id}' , 
	'goods_name' : '{$detail.goods_name}',
};
	$('.rbar_title_c2').hover(function(){
		$(this).addClass('color_yellow');
		$('.rbar_title_c1').removeClass('color_yellow');
		$('.rbar_img').animate({
			left:'130px',
		},100)
	});
	$('.rbar_title_c1').hover(function(){
		$(this).addClass('color_yellow');
		$('.rbar_title_c2').removeClass('color_yellow');
		$('.rbar_img').animate({
			left:'0px',
		},100)
	});	

	/**	  加减数量	**/
	$('.buy_up').on('click' , function(){
		var val = parseInt($('#num').val());
		if(val < 1){
			$('#num').val(1);
		}else{
			val = (val - 1) == 0 ? 1 : (val-1) ; 
			$('#num').val(val);
		}
	});
	$('.buy_down').on('click' , function(){
		var val = parseInt($('#num').val());
		val = val + 1  ;
		val = val > 99 ? 99 : val ; 
		$('#num').val(val);
	});
	/**    加入购物车   **/
	$('#buy_now').on('click' , function(){
		var num = parseInt($('#num').val()) ;
		if(num <= 1){num = 1;}
		if(num >= 99){num = 99 ;}
		AjaxAddCart(goods_info.goods_id , num , 0);
	});
	$('#add_to_cart').on('click' , function(){
		var num = parseInt($('#num').val()) ;
		if(num <= 1){num = 1;}
		if(num >= 99){num = 99 ;}
		AjaxAddCart(goods_info.goods_id , num , 1);
	});
</script>
</body>
</html>

